{if isset($comments) && $module == '0'}
<form action="{uri args="acp/comments/delete_comments_per_module"}" method="post">
	<div id="adm-list">
		<input type="image" src="{icon path="32/cancel"}" alt="{lang values="common|delete_marked"}" title="{lang values="common|delete_marked"}" />
		<h2>{lang values="comments|comments_overview"}</h2>
	</div>
	<hr />
{$pagination}
	<table>
		<thead>
			<tr>
				<th>{lang values="common|mark"}</th>
				<th>{lang values="comments|module"}</th>
				<th>{lang values="comments|comments_count"}</th>
			</tr>
		</thead>
		<tbody>
{foreach from=$comments item=row}
			<tr>
				<td><input type="checkbox" name="entries[]" value="{$row.module}" /></td>
				<td><a href="{uri args="acp/comments/adm_list/module_`$row.module`"}" title="{lang values="comments|show_comments"}">{$row.name}</a></td>
				<td>{$row.count}</td>
			</tr>
{/foreach}
		</tbody>
	</table>
{mark name="entries"}
</form>
{elseif isset($comments) && $module != '0'}
<form action="{uri args="acp/comments/delete_comments"}" method="post">
	<div id="adm-list">
		<input type="image" src="{icon path="32/cancel"}" alt="{lang values="common|delete_marked"}" title="{lang values="common|delete_marked"}" />
		<h2>{lang values="comments|comments_overview"}</h2>
	</div>
	<hr />
{$pagination}
	<table>
		<thead>
			<tr>
				<th>{lang values="common|mark"}</th>
				<th>{lang values="common|date"}</th>
				<th>{lang values="common|name"}</th>
				<th>{lang values="common|message"}</th>
				<th>{lang values="comments|ip}</th>
			</tr>
		</thead>
		<tbody>
{foreach from=$comments item=row}
			<tr>
				<td><input type="checkbox" name="entries[]" value="{$row.id}" /></td>
				<td>{$row.date}</td>
				<td><a href="{uri args="acp/comments/edit/id_`$row.id`"}" title="{lang values="comments|edit"}">{$row.name}</a></td>
				<td>{$row.message}</td>
				<td>{$row.ip}</td>
			</tr>
{/foreach}
		</tbody>
	</table>
{mark name="entries"}
</form>
{else}
	<div class="error">
		<h5>{lang values="common|no_entries"}</h5>
	</div>
{/if}